package com.gxa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
* @description: TODO
* @author JZ
* @date 2022/9/1 14:32
* @version 1.0
*/
@ApiModel("访客实体类")
public class Visitor {
    @ApiModelProperty("访客id")
    private int id;
    @ApiModelProperty("访客姓名")
    private String name;
    @ApiModelProperty("访客学历")
    private String education;
    @ApiModelProperty("访客微信")
    private String weChat;
    @ApiModelProperty("访客类型")
    private String type;
    @ApiModelProperty("访客单位")
    private String company;
    @ApiModelProperty("访客开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private String time;
    @ApiModelProperty("访客联系方式")
    private String phone;
    @ApiModelProperty("访客性别")
    private String sex;
    @ApiModelProperty("访客是否驾车")
    private String drive;
    @ApiModelProperty("访客结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private  Date endTime;
    @ApiModelProperty("访客车牌号")
    private String carNum;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getWeChat() {
        return weChat;
    }

    public void setWeChat(String weChat) {
        this.weChat = weChat;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDrive() {
        return drive;
    }

    public void setDrive(String drive) {
        this.drive = drive;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    @Override
    public String toString() {
        return "Visitor{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", education='" + education + '\'' +
                ", weChat='" + weChat + '\'' +
                ", type='" + type + '\'' +
                ", company='" + company + '\'' +
                ", time='" + time + '\'' +
                ", phone='" + phone + '\'' +
                ", sex='" + sex + '\'' +
                ", drive='" + drive + '\'' +
                ", endTime='" + endTime + '\'' +
                ", carNum='" + carNum + '\'' +
                '}';
    }
}
